
export  class selectOption{ 
  constructor(option){
     this.option=option
    //  console.log(this)
    return this._init()
    
  }
  _init(){
    return new Promise((resolve,reject)=>{
     
      resolve( this.strMapToObj(this.option))
    })
  }
  strMapToObj(strMap){
    let obj = Object.create(null);
    for (let [k,v] of strMap) {
      obj[k] = v;
    }
    return obj;
  }
}